/*      **********              Java example code snippet; code(13)             **********         */
        SyndFeed feed = new SyndFeedImpl();    /* creates a new syndfeed object          ...*/
        feed.setFeedType(outputType);          /* specifies which type of feed                ...*/

        feed.setTitle("Aggregated Feed");              /* specification of the feed                       ...*/
        feed.setDescription("Anonymous Aggregated Feed");      /*         ***                */
        feed.setAuthor("Martin Stoppacher");                           /*                ***                */
        feed.setLink("http://martinstoppacher.com");           /*                 ***                */

        List entries = new ArrayList();                /* Creates an enties Object             */
        feed.setEntries(entries);              /* connects the entries Object to the feed     */

                for (int i=1;i<args.length;i++) {     /* loop to insert all feeds                           */
                URL inputUrl = new URL(args[i]);

                SyndFeedInput input = new SyndFeedInput();
                SyndFeed inFeed = input.build(new XmlReader(inputUrl));

                entries.addAll(inFeed.getEntries());
/*                              add the entries of the fetched "infeed" to the created feed                */
        }
        SyndFeedOutput output = new SyndFeedOutput();          /* new output object              */
        Output.output(feed,new PrintWriter(System.out));       /* output to the system         */

/*      **************************************************************************************     */